<include file="public/header" title="分销订单" body="bag_gray"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/main.css">
        <div class="classreturn loginsignup ">
            <div class="content">
                <div class="ds-in-bl return">
                    <a href="{:U('/Mobile/Distribution/index')}"><img src="__STATIC__/images/return.png" alt="返回"></a>
                </div>
                <div class="ds-in-bl search center">
                    <span>分销订单</span>
                </div>
<!--                <div class="ds-in-bl menu">
                    <a href="javascript:void(0);"><img src="__STATIC__/images/class1.png" alt="菜单"></a>
                </div>-->
            </div>
        </div>
        <div class="flool tpnavf">
            <div class="footer">
                <ul>
                    <li>
                        <a class="yello" href="{:U('/Mobile/Index/index')}">
                            <div class="icon">
                                <i class="icon-shouye iconfont"></i>
                                <p>首页</p>
                            </div>
                        </a>
                    </li>
                    
                    <li>
                        <!--<a href="shopcar.html">-->
                        <a href="{:U('/Mobile/Cart/index')}">
                            <div class="icon">
                                <i class="icon-gouwuche iconfont"></i>
                                <p>购物车</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="{:U('/Mobile/User/index')}">
                            <div class="icon">
                                <i class="icon-wode iconfont"></i>
                                <p>会员中心</p>
                            </div>
                        </a>
                    </li>
                </ul>
            </div>
        </div>


        <div class="retails_li3 p">
            <ul>
                
                <li <if condition="$Request.param.status eq 0">class="current"</if>><a href="{:U('/Mobile/Distribution/order_list',array('status'=>0))}">全部</a></li>
                <li <if condition="$Request.param.status eq 1">class="current"</if>><a href="{:U('/Mobile/Distribution/order_list',array('status'=>1))}">未付款</a></li>
                <li <if condition="$Request.param.status eq 2">class="current"</if>><a href="{:U('/Mobile/Distribution/order_list',array('status'=>2))}">已付款</a></li>
                <!--<li <if condition="$Request.param.status eq 3">class="current"</if>><a href="{:U('/Mobile/Distribution/order_list',array('status'=>3))}">已完成</a></li>-->
            </ul>
        </div>
        <div class="quedbox bg_white">
    <!--<div class="sonfbst">-->
        <!--<div class="maleri30">-->
            <!--<span><i class="fbs"></i>立即发表评价晒图，最多可获得50积分</span>-->
        <!--</div>-->
    <!--</div>-->
    <if condition="empty($rebate_log)">
          <!--没有内容时-s-->
        <div class="comment_con p">
            <div style="padding:1rem;text-align: center;font-size: .59733rem;color: #777777;"><img src="__STATIC__/images/none.png"><br><br>亲，没找到你要的数据！</div>
        </div>
<else/>
    <div class="fukcuid mae">
        <div class="maleri30">
            <foreach name="rebate_log" item="v1">
                <div class="shopprice dapco p">
                    <div class="img_or fl"><img src="{$v1[goods_id]|goods_thum_images=200,200}"></div>
                    <div class="fon_or fl">
                        <h2 class="similar-product-text">
                            <a href="">{$v1[order_sn]}&nbsp; &nbsp;{$v1[goods_name]}&nbsp;&nbsp;{$v1[total_amount]}</a>
                        </h2>
                        <p class="pall0">购买时间：{$v1.create_time|date='Y-m-d H:i',###}</p>
                        <p class="pall0">来源于：{$v1.nickname}   {$v1.level_name}</p>
                    </div>
                   
                </div>
            </foreach>
        </div>
    </div>
    </if>
</div>

     <div class="comment_con p">
            <!--<div style="padding:1rem;text-align: center;font-size: .59733rem;color: #777777;">{$show}</div>-->
        </div>
        <!--没有内容时-e-->
         <include file="public/footer_nav"/>
        <script type="text/javascript" src="__STATIC__/js/sourch_submit.js"></script>
        <script type="text/javascript">
            //商品数量大于2时显示省略号
            $(function () {
                var jnum = $('.jnum').text();
                if (jnum > 2) {
                    $('#ellipsis').show();
                }
            })

            var page = 1;
            /*** ajax 提交表单 查询订单列表结果*/
            function ajax_sourch_submit()
            {
                page += 1;
                $.ajax({
                    type: "GET",
                    url: "/index.php?m=Mobile&c=Distribution&a=order_list&status={$Request.param.status}&is_ajax=1&p=" + page, //+tab,
                    data: $('#filter_form').serialize(), // 你的formid 搜索表单 序列化提交
                    success: function (data)
                    {
                        if ($.trim(data) == '')
                            $('#getmore').hide();
                        else {
                            $("#ajax_return").append(data);
                            $('#getmore').show();
                        }
                    }
                });
            }
        </script>


    </body></html>